//
//  BZResponsePaser.h
//  BZBaseNetWorkSDK
//
//  Created by 瞿衡 on 17/9/24.
//  Copyright © 2017年 瞿衡. All rights reserved.
//

#import <Foundation/Foundation.h>


typedef void(^successBlock)(NSString *code , id responseObject);
typedef void(^failureBlock)(NSString *code,NSError *error);

@interface BZResponsePaser : NSObject


+ (void)handleResponseObject:(id)responseObject
                        task:(NSURLSessionDataTask *)task
                     success:(void(^)(NSString *code , id responseObject))success
                     failure:(void(^)(NSString *code,NSError *error))failure;

@end
